package com.wzl.thread.methods;

import com.wzl.common.VkPublicResponse;
import lombok.extern.slf4j.Slf4j;

import java.util.concurrent.Callable;

/**
 * 实现Callable接口通过FutureTask包装器来创建Thread线程
 *
 * @author weizhongli
 * @since 2022-09-15 21:29
 */
@Slf4j
public class TcThreadCallable implements Callable {

    private String taskNum;

    public TcThreadCallable() {

    }

    public TcThreadCallable(String taskNum) {
        this.taskNum = taskNum;
    }

    @Override
    public Object call() throws Exception {
        log.info("线程开始执行啦TcMyThread3.run()");
        return new VkPublicResponse();
    }

}